package lib.bone.nepudata.domain.dto.topic;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "纵向课题更新数据")
public class TopicUpdateDTO {
    @NotBlank(message = "纵向课题ID不可为空")
    @ApiModelProperty(value = "纵向课题ID",name = "id")
    String id;


    @Min(value = 0,message = "课题经费不少于于0")
    @ApiModelProperty(value = "课题经费",notes = "")
    Double topicFunds;

    @Min(value = 0,message = "已到账经费不少于于0")
    @ApiModelProperty(value = "已到账经费",notes = "")
    Double receivedFunds;

    @ApiModelProperty(value = "纵向课题名称",notes = "")
    String topicName;

//    @NotNull(message = "是否延期不可为空")
//    @ApiModelProperty(value = "是否延期",notes = "")
//    Integer isDelay;
//
//
//    @ApiModelProperty(value = "课题执行日期",notes = "课题执行日期，如2021/11/16")
//    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
//    Date startDate;
//
//
//    @ApiModelProperty(value = "课题结束日期",notes = "合同开始日期，如2021/11/16")
//    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
//    Date endDate;
//
//
//    @ApiModelProperty(value = "关联文件ID列表")
//    List<String> fileIds;

    /**
     * 工作量只有在流程进行态可以修改
     */
    @NotNull(message = "工作量不可为空")
    @ApiModelProperty(value = "工作量",notes = "")
    Integer workload;
}
